using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._NetworkDiagramTools._Configuration
{
    /// <summary>
    /// <para>Export Diagram Template Definitions</para>
    /// <para>Exports the network diagram rule and layout definitions and the network diagram layer definition to .ndbd and .ndld files, respectively.</para>
    /// <para>将网络逻辑示意图规则和布局定义以及网络逻辑示意图图层定义分别导出为 .ndbd 和 .ndld 文件。</para>
    /// </summary>    
    [DisplayName("Export Diagram Template Definitions")]
    public class ExportDiagramTemplateDefinitions : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ExportDiagramTemplateDefinitions()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Network</para>
        /// <para>The utility network or trace network referencing the diagram template definitions to export.</para>
        /// <para>引用要导出的逻辑示意图模板定义的公共设施网络或追踪网络。</para>
        /// </param>
        /// <param name="_template_name">
        /// <para>Input Diagram Template</para>
        /// <para>The name of the diagram template with definitions to be exported.</para>
        /// <para>包含要导出的定义的逻辑示意图模板的名称。</para>
        /// </param>
        public ExportDiagramTemplateDefinitions(object _in_utility_network, object _template_name)
        {
            this._in_utility_network = _in_utility_network;
            this._template_name = _template_name;
        }
        public override string ToolboxName => "Network Diagram Tools";

        public override string ToolName => "Export Diagram Template Definitions";

        public override string CallName => "nd.ExportDiagramTemplateDefinitions";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _template_name, _out_ndbd_file, _out_ndld_file, _out_utility_network, _out_template_name];

        /// <summary>
        /// <para>Input Network</para>
        /// <para>The utility network or trace network referencing the diagram template definitions to export.</para>
        /// <para>引用要导出的逻辑示意图模板定义的公共设施网络或追踪网络。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Input Diagram Template</para>
        /// <para>The name of the diagram template with definitions to be exported.</para>
        /// <para>包含要导出的定义的逻辑示意图模板的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _template_name { get; set; }


        /// <summary>
        /// <para>Output Rule and Layout Definitions File</para>
        /// <para>The network diagram rule and layout definitions file (.ndbd) to be created.</para>
        /// <para>要创建的网络逻辑示意图规则和布局定义文件 （.ndbd）。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Rule and Layout Definitions File")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _out_ndbd_file { get; set; } = null;


        /// <summary>
        /// <para>Output Diagram Layer Definition File</para>
        /// <para>The network diagram layer definition file (.ndld) to be created.</para>
        /// <para>要创建的网络逻辑示意图图层定义文件 （.ndld）。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Diagram Layer Definition File")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _out_ndld_file { get; set; } = null;


        /// <summary>
        /// <para>Output Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        /// <summary>
        /// <para>Output Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_template_name { get; set; }


        public ExportDiagramTemplateDefinitions SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}